package cn.com.enboga.musicbox.progressbar
{
	import flash.display.Sprite;
	import flash.events.Event;

	public class ProgressBar extends Sprite
	{
		public function ProgressBar()
		{
			this.addEventListener(Event.ENTER_FRAME, onEnterFrme);
			
			super();
		}
		
		public function onEnterFrme(event:Event):void
		{
			var barWidth:int = 200;
			var barHeight:int = 5;
			var loaded:int = 100;
			var total:int = 200;
			//if(){
				//绘制背景条
				graphics.clear();
				graphics.beginFill(0xFFFFFF);
				graphics.drawRect(80, 50, barWidth, barHeight);
				graphics.endFill();
				
				
			//}
		}
	}
}